Skip to main content

Last Update: 2025/3/26

SenseFlow Upload API

The SenseFlow Upload API allows you Upload files to Agent.

Endpoints

Upload File

POST https://platform.llmprovider.ai/v1/agent/files/upload

Upload files (currently only supports images) for use in multimodal interactions. Supports png, jpg, jpeg, webp, and gif formats.

Request Headers

HeaderValue
AuthorizationBearer YOUR_API_KEY
Content-Typemultipart/form-data

Request Body Parameters

ParameterTypeDescription
modelstringagent name
filefileThe file to upload. file maxsize <= 20M
userstringUser identifier (must match the message API user ID)

Response

FieldTypeDescription
iduuidFile ID
namestringFile name
sizeintegerFile size in bytes
extensionstringFile extension
mime_typestringFile MIME type
created_byuuidUploader ID
created_attimestampUpload timestamp
Example Response
{
"id": "72fa9618-8f89-4a37-9b33-7e1178a24a67",
"name": "example.png",
"size": 1024,
"extension": "png",
"mime_type": "image/png",
"created_by": 123,
"created_at": 1577836800
}

Example Request

curl -X POST 'https://platform.llmprovider.ai/v1/agent/files/upload' \
--header 'Authorization: Bearer {api_key}' \
--form 'file=@localfile;type=image/[png|jpeg|jpg|webp|gif] \
--form 'model='
--form 'user=abc-123'